search.parse();

var form = new Form("cybercafe");

//加载数据
function loadData(entityid) {
	pcGlobal.sendRequest(__ctx + "/cybercafe/queryCybercafeDetail.xhtml", {entityid : entityid}, function(data, status) {
		if (data.status) {
			form.setData(data.result);
			
			$("#buslicense").removeClass("table-cell-link-disabled")
							.addClass("table-cell-link")
							.attr("onclick", "showImage('" + data.result.buslicense + "');")
							.attr("title", "点击查看营业执照");
		} else search.warn({content : "加载网吧详情失败！"});
	});
}

//显示图片
function showImage(url) {
	var win = $(top.window);
	var data = {
		url : __ctx + "/viewimagedata.xhtml", 
		title : "图片资料", 
		width : win.width(), 
		height : win.height(), 
		onload : function(window) {
			window.loadImage(url);
		}, 
		ondestroy : function(result){
		}
	}
	top.search.popDialog(data);
}
